package com.jzxk;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 今朝惜客
 * @CreateTime : 16/9/21 上午11:17
 * @Description : XXX
 */
public class MainStart {

	private static final Logger LOGGER= LoggerFactory.getLogger(MainStart.class);

	public static void main(String[] args){

		try{
			ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext(new String[]{"applicationContext.xml","spring-mybatis.xml","applicationContext-provider.xml"});
			context.start();
			LOGGER.info("MainStart Context Start Success!");
			System.in.read();
		}catch (Exception e){
			LOGGER.error("MainStart Context Start error!:",e);
		}
	}
}
